package com.ayuan.blog.dao;

import com.ayuan.blog.bean.ArticleInfo;
import org.apache.ibatis.annotations.Param;
import org.durcframework.core.dao.BaseDao;
import com.ayuan.blog.domain.Article;
import org.durcframework.core.expression.ExpressionQuery;

import java.util.List;

public interface ArticleDao extends BaseDao<Article> {

    public List<ArticleInfo> findAllArticleInfo(ExpressionQuery query);

    public Integer testCount();

    public List<ArticleInfo> findArticleInfo(ExpressionQuery query);

    public Integer findArticleInfoTotalCount(ExpressionQuery query);

    void addViewNumber(@Param("articleId") Integer articleId);

}